﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Telecom.Service;
using TelecomGis.Helper.Control;

namespace TelecomGis.Controllers
{
    public class MangVTController : ContronllerBase
    {
        private readonly mangVTSer _mangVTSer = new mangVTSer();
        //
        // GET: /MangVT/

        public string Get_MVT_ById(string ma)
        {
            var _listEntity = _mangVTSer.GetByid(ma);

            return JsonConvert.SerializeObject(_listEntity, Formatting.Indented,
                              new JsonSerializerSettings
                              {
                                  ReferenceLoopHandling = ReferenceLoopHandling.Ignore
                              });
        }

    }
}
